package junit.com.cpi.cornpp.tagdistribution.dao;

import java.util.List;

import com.cpi.cornpp.tagdistribution.dao.TagDistributionDAO;
import com.cpi.cornpp.tagdistribution.exception.TagDistributionException;

import junit.framework.TestCase;

public class TagDistributionDAOTest extends TestCase {

	public TagDistributionDAOTest(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	public void testGetPlantVersionDistribution() {
		TagDistributionDAO tagDistributionDAO = null;
		
		tagDistributionDAO = new TagDistributionDAO(); 
		try {
			List list = tagDistributionDAO.getPlantVersionDistribution(74, 1195);
			assertEquals(list.size(), 2);
		} catch (TagDistributionException tagDistributionException) {
			tagDistributionException.printStackTrace();
			fail(tagDistributionException.getMessage());
		}
		
	}
}